/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.gt.entity.GtCountry;
import com.thinkgem.jeesite.modules.gt.dao.GtCountryDao;

/**
 * 下乡重点村信息Service
 * @author zad
 * @version 2018-03-26
 */
@Service
@Transactional(readOnly = true)
public class GtCountryService extends CrudService<GtCountryDao, GtCountry> {

	public GtCountry get(String id) {
		return super.get(id);
	}
	
	public List<GtCountry> findList(GtCountry gtCountry) {
		return super.findList(gtCountry);
	}
	
	public Page<GtCountry> findPage(Page<GtCountry> page, GtCountry gtCountry) {
		return super.findPage(page, gtCountry);
	}
	
	@Transactional(readOnly = false)
	public void save(GtCountry gtCountry) {
		super.save(gtCountry);
	}
	
	@Transactional(readOnly = false)
	public void delete(GtCountry gtCountry) {
		super.delete(gtCountry);
	}
	@Transactional(readOnly = false)
	public void deleteByCountryInfoId(String countryInfoId)
	{
		super.dao.deleteByCountryInfoId(countryInfoId);
	}
	
	// 批量插入科技下乡信息
	public int insertList(List<GtCountry> countryList){
		return super.dao.insertList(countryList);
	}
}